package com.myway.dao;


import com.myway.dto.order.domain.Inventory;
import com.myway.dto.vo.FlyPassengerSegmentVo;
import com.myway.pojo.FlyPassengerSegment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlyPassengerSegmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FlyPassengerSegment record);

    int insertSelective(FlyPassengerSegment record);

    FlyPassengerSegment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FlyPassengerSegment record);

    int updateByPrimaryKey(FlyPassengerSegment record);

    /*根据旅客id和订单id查询*/
    List<FlyPassengerSegment> selectByOrderIdAndPassengerId(@Param("orderId") Long orderId, @Param("passengerId") Long passengerId);

    List<FlyPassengerSegmentVo> selectVoByOrderId(Long orderId);

    List<FlyPassengerSegmentVo> findPassengerSegmentByNameAndPnrAndInventory(@Param("passgName") String name,@Param("pnrNo") String pnrNo, Inventory inventory);

    //根據乘客id查詢票号
    List<String> getTicketNoByPassengerId(@Param("passengerId") String passengerId,
                                          @Param("orderId")String orderId);
    /*END*/
}